#include "LogInDialog.h"

LogInDialog::LogInDialog(QWidget *parent) :
    QDialog(parent)
{
    setupUi(this);
    center();
}

QString LogInDialog::getUser()
{
    return lneUsuario->text();
}

QString LogInDialog::getPassword()
{
    return lnePassword->text();
}

void LogInDialog::setMessage(QString msg)
{
    lblMensaje->setText(msg);
}

void LogInDialog::setFocusPassword()
{
    lnePassword->setFocus();
}

void LogInDialog::center()
{
    const QRect screen = QApplication::desktop()->screenGeometry();
    this->move( screen.center() - this->rect().center() );
}
